import request from '@/utils/request'

// 查询大屏图片列表
export function listPicture(query) {
  return request({
    url: '/wanzhi/picture/list',
    method: 'get',
    params: query
  })
}

// 查询大屏图片详细
export function getPicture(uuid) {
  return request({
    url: '/wanzhi/picture/' + uuid,
    method: 'get'
  })
}

// 新增大屏图片
export function addPicture(data) {
  return request({
    url: '/wanzhi/picture',
    method: 'post',
    data: data
  })
}

// 修改大屏图片
export function updatePicture(data) {
  return request({
    url: '/wanzhi/picture',
    method: 'put',
    data: data
  })
}

// 删除大屏图片
export function delPicture(uuid) {
  return request({
    url: '/wanzhi/picture/' + uuid,
    method: 'delete'
  })
}
